package com.gupao.strategy;

/**
 * 除法策略
 * Created by ktyan on 2017/5/23.
 */
public class DivisionStrategy implements Strategy {
    public int calculate(int a, int b) {
        if (b!=0) {
            return a / b;
        }else {
            System.out.println("除数不能为0！");
            return 0;
        }
    }
}
